package com.cyjf.api.web;


import com.cyjf.biz.service.CarDealerService;
import com.cyjf.dbview.model.UserPO;
import com.cyjf.util.ResultVO;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("/carDealer")
@RestController
public class CarDealerController {

    @Resource
    private CarDealerService carDealerService;

    //今日新增车商数
    @RequestMapping(value = "/count", method = RequestMethod.POST)
    private ResultVO carDealerCount(){
        return carDealerService.newAddCarDealer();
    }

    //【整车交易】市场详情-按省份统计
    @RequestMapping(value = "/provincesCount", method = RequestMethod.POST)
    private ResultVO provincesCount(){

        return carDealerService.provincesAmount();
    }

    //渠道占比
    @RequestMapping(value = "/channelProportion", method = RequestMethod.POST)
    private ResultVO channelCount(){
        return carDealerService.channelProportion();
    }

    //【整车交易】市场详情
    @RequestMapping(value = "/marketDetail", method = RequestMethod.POST)
    private ResultVO marketDetail(String prov){
        return carDealerService.MarketDetail(prov);
    }
}
